package com.runda.biz.service;

import java.util.List;

import com.bbjob.model.ProductAdapterInfo;
import com.bbjob.util.service.impl.BaseService;

import org.springframework.stereotype.Service;
@Service
public class ProductionAdaptionInfoService extends BaseService<ProductAdapterInfo>
        implements IProductAdaptionInfoService {

    public Integer saveBatch(List<ProductAdapterInfo> list, Integer productId) {
        list.forEach(adaptionInfo -> {
            adaptionInfo.setProductId(productId);
            this.mapper.insert(adaptionInfo);
        });
        return 1;
    }
    
}